#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <unistd.h>
#include <string.h>
#include <math.h>

#define tupleNum	5000*500 * 8 

int main(int argc, char ** argv){
	int i,j;
	int key,value;

	if(argc != 3){
		printf("./scanBinaryGen colSize colNum\n");
		exit(-1);
	}

	int colSize = atoi(argv[1]);
	int colNum = atoi(argv[2]);


// here we don't care the actual value in the scan col

	for(i=0;i<tupleNum * colSize;i++){
		srandom(i);
		char buf[128];
		strcpy(buf,"");
		for(j=0;j<colNum;j++){
			char tmp[32];
			sprintf(tmp, "%d|", i%100);
			strcat(buf,tmp);
		}
		printf("%s\n",buf);
	}

	
	return 0;
}
